<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" >  

    <!--    <h:body>-->
    <ui:composition template="layout.xhtml">-->

        <ui:define name="corpo">
            <h:form id="index_form" acceptcharset="utf-8"> 
                    <div id="breadcrumb">
                        <p:commandLink  actionListener="#{managerIndex.redirect('index.xhtml')}" value="Inicio" update="@form" immediate="true"/> >
                        <p:commandLink  actionListener="#{managerIndex.redirect('config.xhtml')}" value="Configurações" update="@form" immediate="true"/> >
                        <p:commandLink  actionListener="#{managerIndex.redirect('indexOrcamento.xhtml')}" value="Atendimento" update="@form" immediate="true"/> 
                        
                    </div>
                <p:panel header="Principal - Atendimento Inicial">
                    <h:panelGrid style="float: right;" columns="4">
                        <p:graphicImage url="/media/img/new.png" title="Cadastrar Tipo Selo" /> <p:commandLink   value="Cadastrar" title="Cadastrar Atendimento Inicial" actionListener="#{managerOrcamento.redirect('orcamento.xhtml')}" update="@form"/>
<!--                        <p:graphicImage url="/media/img/search.png" title="Pesquisar Tipo Selo"/><p:commandLink value="Pesquisar" title="Pesquisar Tipo Selo" actionListener="{managerTipoSelo.pesquisarTipoSelo()}" update="@form"/>-->
                    </h:panelGrid>
                    <br/>
                    <br/>
                    <p:dataTable id="orcamentoTable" var="orc" value="#{managerOrcamento.orcamentos}" 
                                 paginator="true" rows="5"
                                 paginatorPosition="bottom"
                                 paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"  
                                 rowsPerPageTemplate="5,10,15">    

                        <f:facet name="header">  
                            Atendimento
                        </f:facet>

                        <p:column style="width:200px;">  
                            <f:facet name="header" >   
                                Documento
                            </f:facet>  
                            <h:outputText value="#{orc.doc}" style="font-weight: bold;"
                                          />  
                        </p:column>
                        <p:column style="width:300px;">  
                            <f:facet name="header" >   
                                Nome
                            </f:facet>  
                            <h:outputText value="#{orc.nome}" style="font-weight: bold;" />  
                        </p:column>

                        <p:column style="width:80px;">  
                            <f:facet name="header" >   
                                Observação
                            </f:facet> 
                            <h:outputText value="#{orc.observacao}" style="font-weight: bold;" />  
                          
                        </p:column>

                        <p:column style="width:50px;">  
                            <f:facet name="header">  
                                <h:outputText value="Opções" />   
                            </f:facet>
                            <p:commandButton  icon="editar" actionListener="#{managerTipoSelo.editarTipoSelo(tipo)}" update="@form"/> 
                            <p:commandButton  icon="view" actionListener="#{managerTipoSelo.visualizarTipoSelo(tipo)}" update="@form"/>   

                        </p:column>

                    </p:dataTable> 

                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
